/**
 * @author:ice-jz
 */
import {
	request
} from "../https/request.js";

// 密码登录
export function passwordLogin(data) {
	return request('/kyy/login/password', 'POST', data);
}

//微信登录
export function wxLogin(data) {
	return request('/kyy/login/wechat/' + data, 'GET');
}

//退出登录
export function logout() {
	return request('/kyy/login/logout', 'POST');
}

//发送验证码
export function sendLoginCode(phone) {
	return request(`/kyy/login/sendcode/${phone}`, 'POST', null);
}

//验证码登录
export function codeLogin(data) {
	return request('/kyy/login/codelogin', 'POST', data);
}
